<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

/**
 * Class TlPayList
 * 
 * @property int $id
 * @property int|null $order_id
 * @property string|null $toAcctDate
 * @property string|null $toAcctName
 * @property string|null $toAcctNo
 * @property string|null $toAcctTime
 * @property string|null $processing_code
 * @property string|null $inst_id
 * @property string|null $trans_date
 * @property string|null $trans_time
 * @property string|null $ver_num
 * @property string|null $sign_code
 * @property string|null $req_trace_num
 * @property string|null $sign_num
 * @property string|null $pay_mode
 * @property string|null $bnk_id
 * @property string|null $acct_num
 * @property string|null $cur_type
 * @property string|null $amt_tran
 * @property string|null $resp_trace_num
 * @property string|null $resp_code
 * @property string|null $resp_msg
 * @property string|null $pay_amount
 * @property string|null $trace_fee
 * @property string|null $acs_summary
 * @property Carbon|null $create_time
 * @property Carbon|null $update_time
 * 
 * @property Order|null $order
 *
 * @package App\Models
 */
class TlPayList extends Model
{
	protected $table = 'tl_pay_list';

	protected $casts = [
		'order_id' => 'int'
	];

	protected $fillable = [
		'order_id',
		'toAcctDate',
		'toAcctName',
		'toAcctNo',
		'toAcctTime',
		'processing_code',
		'inst_id',
		'trans_date',
		'trans_time',
		'ver_num',
		'sign_code',
		'req_trace_num',
		'sign_num',
		'pay_mode',
		'bnk_id',
		'acct_num',
		'cur_type',
		'amt_tran',
		'resp_trace_num',
		'resp_code',
		'resp_msg',
		'pay_amount',
		'trace_fee',
		'acs_summary'
	];

	public function order()
	{
		return $this->belongsTo(Order::class);
	}
}
